package cn.edu.zut.sunday.misc.domain;

import cn.edu.zut.sunday.base.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "information_group")
public class InformationGroup extends BaseEntity<Integer> {
    @Column(name = "vuln_type")
    private String vulnType;

    @Column(name = "cve_id")
    private String cveId;

    @Column(name = "published")
    private String published;

    @Column(name = "modified")
    private String modified;
    @OneToMany(mappedBy = "vulnType", cascade = CascadeType.REMOVE, fetch = FetchType.EAGER)
    Set<InformationSecurity> informationSecurities;

}
